package com.lagou.edu.dao.repository;

import com.lagou.edu.dao.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author bobcheng
 * @date 2020/7/13
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    User findTopByEmail(String email);

    User findTopByEmailAndPassword(String email, String password);
}
